import * as types from './mutation-types.js';
export default {
    //当前日期，封面
    [types.SETBASEINFO](state,data){
        if(data){
            state.baseInfo = data;
        }
    },
    //ID作品详情
    [types.SETWORKSDETAIL](state,data){
        if(data){
            state.worksDetail = data;
        }else{
            state.worksDetail = '';
        }
    },
    //创新表达详情
    [types.SETINNOVATEDETAIL](state,data){
        if(data){
            state.innovateDetail = data;
        }else{
            state.innovateDetail = '';
        }
    },
}